﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using WROA.Models.Entitys;
using DevExpress.Xpo;
using System.Web.Mvc;

namespace WROA.Models.IServices
{
    public interface IUserService : IService
    {
        bool IsPass(string name, string password);
        string SelectRole(string name);
        Role GetRole(string name);
        string SelectPosition(string name);
        Position GetPosition(string name);
        void UpdateRole(string name, string role);
        void UpdatePosition(string name, string position);
        void UpdatePassword(string name, string password);
        void UpdateUserData(Users user);
        bool IsExist(string name);
        Users GetUser(string name);
        XPCollection GetAllUser();
        IList<SelectListItem> GetRoleListName();
        IList<SelectListItem> GetPositionListName();
    }
}